<%@ page language="java" pageEncoding="UTF-8"%>
<%@ include file="../struts_taglib.jsp"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>  
  <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
  <title>旅游管理/交通费</title>
  <%@ include file="../link_script.jsp" %>
  <script src="js/pmis/pmis-travelling-expense.js" language="javascript" type="text/javascript"></script>
</head>
<body>
<html:form styleId="list" action="/travellingExpense.do">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <%@ include file="../operate_button_list.jsp" %>
  <tr>
    <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="8" background="images/tab_12.gif">&nbsp;</td>
        <td><table id="theObjTable" width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#b5d6e6" onMouseOver="javascript:changeto();" onmouseout="javascript:changeback();">
          <tr>
            <td width="4%" class="tdClass">选择</td>
            <td width="4%" class="tdClass">序号</td>
            <td width="10%" class="tdClass">旅游计划</td>
            <td width="8%" class="tdClass">乘车日期</td>
            <td width="7%" class="tdClass">交通类型</td>
            <td width="7%" class="tdClass">出发站</td>
            <td width="7%" class="tdClass">到达站</td>
            <td width="4%" class="tdClass">车次</td>
            <td width="4%" class="tdClass">数量</td>
            <td width="6%" class="tdClass">耗时/时</td>
            <td width="8%" class="tdClass">费用/￥</td>
            <td width="15%" class="tdClass">描述</td>
            <td width="4%" class="tdClass">结算</td>
            <td width="10%" class="tdClass">常用操作</td>
            <td width="*" class="tdClass">...</td>           
          </tr>
          <logic:notEmpty name="travellingExpenseList">
          <% int i = 0; %>
            <logic:iterate id="var" name="travellingExpenseList">
            <% i++; %>
              <tr>
                <td class="STYLE12"><input type="checkbox" name="ids" value="${var.teID}" /></td>
                <td class="STYLE12"><%=i %></td>
                <td class="STYLE11">&nbsp;${var.tpName }</td>
                <td class="STYLE12"><bean:write name="var" property="teDate" /></td>
                <td class="STYLE12"><bean:write name="var" property="teType" /></td>
                <td class="STYLE13"><bean:write name="var" property="beginPlace" />&nbsp;</td>
                <td class="STYLE13"><bean:write name="var" property="endPlace" />&nbsp;</td>
                <td class="STYLE12"><bean:write name="var" property="trainNum" /></td>
                <td class="STYLE12"><bean:write name="var" property="teNumber" /></td>
                <td class="STYLE13"><bean:write name="var" property="teTime" />小时&nbsp;</td>
                <td class="STYLE13"><bean:write name="var" property="teExpenses" />￥&nbsp;</td>
                <td class="STYLE11">&nbsp;<bean:write name="var" property="teDesc" /></td>
                <c:if test="${var.tePay=='0'}">
                <td class="STYLE12">已结</td>
                <td class="STYLE12">
                <a href="travellingExpense.do?method=detailTravellingExpense&teID=${var.teID}">明细</a>&nbsp;&nbsp;结算</td>
                </c:if>
                <c:if test="${var.tePay=='1'}">
                <td class="STYLE12"><font color="red">未结</font></td>
                <td class="STYLE12">
                <a href="travellingExpense.do?method=detailTravellingExpense&teID=${var.teID}">明细</a>&nbsp;&nbsp;<a href="travellingExpense.do?method=payTravellingExpense&teID=${var.teID}">结算</a></td>
                </c:if>
                <td class="STYLE12">&nbsp;&nbsp;</td>
              </tr>
            </logic:iterate>
          </logic:notEmpty>
        </table></td>
        <td width="8" background="images/tab_15.gif">&nbsp;</td>
      </tr>
    </table></td>
  </tr>
  <%@ include file="../page.jsp"%>
</table>
</html:form>
</body>
</html>

